<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>QUnit LoadHide</title>
    <link rel="stylesheet" href="resources/qunit.css" />
  </head>

  <body>
    <div id="qunit"></div>
    <div id="qunit-fixture">
      <div style="width:600px;">
        <iframe
          src="resources/frame.content.html"
          width="100%"
          scrolling="no"
        ></iframe>
      </div>
    </div>
    <script src="resources/qunit.js"></script>
    <script src="resources/jquery.js"></script>
    <script>
      //var myOwnJquery = jQuery.noConflict(true);
    </script>
    <script src="../js/iframeResizer.min.js"></script>
    <script>
      'use strict'
      var msgId = '[iFrameSizerTest]:'

      asyncTest('init with jQuery.noConflict', function() {
        try {
          $('iframe').iFrameResize({
            //log:true,
            bodyBackground: 'wheat',
            heightCalculationMethod: 'max',
            onInit: function(iframe) {
              ok(true, 'Receive init message back from iFrame.')
              start()
            }
          })
        } catch (e) {
          console.log(e)
          ok(false)
          start()
        }
      })
    </script>
  </body>
</html>
